package com.jd.jr.insights.dm.dim.dao;

import com.jd.jr.insights.dm.dim.domain.DimTransform;
import com.jd.jr.insights.dm.dim.util.fastjson.tree.ITreeNode;
import com.jd.jr.insights.dm.dim.util.fastjson.tree.Result;
import com.jd.jr.insights.dm.dim.util.easyui.paginate.Pagger;

import java.util.List;

/**
 * Created by guoxuefei1 on 2017/7/18.
 */
public interface DimTransformDao {
    public List<DimTransform> getList();
    public int getTotalRows();
    public Pagger getListInPage(int pageNum) ;

    /**
     * 带条件的分页查询
     * @param pageNum
     * @param dimTransform
     * @return
     */
    public Pagger getListInPage(int pageNum,DimTransform dimTransform) ;
    public Boolean deleteById(DimTransform dimTransform);

    public Boolean deleteByIds(Integer[] ids);
    public Boolean update(DimTransform dimTransform);
    public Boolean save(DimTransform dimTransform);
    public List<Result> getOldTableNameList();
    public List<Result> getNewTableNameList();
    public List<Result> getNewColumnNameList();
    public List<Result> getOldKeyIdList();
    public List<Result> getOldKeyNameList();
    public List<ITreeNode> getBizList();

}
